package com.jr.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CareProvider {
    private Integer providerId;
    private Integer userId;
    private String businessName;
    private String businessLicense;
    private String contactPerson;
    private String businessAddress;
    private String serviceArea;
    private Integer capacity;
    private BigDecimal rating;
    private Integer reviewCount;
    private String status; // pending, approved, rejected, suspended

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}
